package package2020;

//port java.util.Arrays;
import java.util.Scanner;

public class shuZu {
	  public static void main(String[] args){
		System.out.println("请输入数据\n");
		//Scanner sc=new Scanner(System.in);
		//t len=sc.nextInt();
		int len = 5;
		int p = 0;
		int[] aa=new int[len];//
		int[] bb=new int[len*3/2];  //阔容的临时数组
		//int[] 
		while(true)
		{
			Scanner sc=new Scanner(System.in);
			int num=sc.nextInt();
			aa[p] = num;
			bb[p] = aa[p];
			p++;
			if(p == len*4/5)
			{
				System.out.println("====扩容=====");
				aa = bb;
				//len = len*3/2;
			}
			if(p == len*3/2 - 1)
			{
				System.out.println("====退出循环=====");
				break;
			}
		}
		System.out.println("==========");
		for(int t = 0;t<len*3/2 - 1;t++) {
			System.out.print(aa[t]+" ");	
			//System.out.print(" ");
		}
		System.out.println();
		System.out.println("======结束===\n");
	  
		  
}}